<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CreateNetworkOperator.aspx.cs"
    Inherits="Workflow.Layout.Layouts.CreateNetworkOperator" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title><asp:Literal ID="lblTitle" runat="server" />
    </title>
</head>
<body>
    <form id="form1" runat="server">
    <center>
        <div>
            <h2>
                Create municipality user</h2>
        </div>
    </center>
    <div id="createuser" runat="server">
        <div id="municipality" runat="server">
            <div id="municipalityname" runat="server">
                <span class="rowBoxLabel">Municipality Name:</span>
                <asp:TextBox ID="txtMunicipalityName" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvMunicipalityName" ControlToValidate="txtMunicipalityName"
                    runat="server" ErrorMessage="Required Field" Text="*" />
            </div>
            <div id="login" runat="server">
                <span class="rowBoxLabel">Login:</span>
                <asp:TextBox ID="txtLogin" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvLogin" ControlToValidate="txtLogin" runat="server"
                    ErrorMessage="Required Field" Text="*" />
            </div>
            <div id="password1" runat="server">
                <span class="rowBoxLabel">Password:</span>
                <asp:TextBox ID="txtPassword1" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvPassword1" ControlToValidate="txtPassword1" runat="server"
                    ErrorMessage="Required Field" Text="*" />
            </div>
            <div id="password2" runat="server">
                <span class="rowBoxLabel">Re-type password:</span>
                <asp:TextBox ID="txtPassword2" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvPassword2" ControlToValidate="txtPassword2" runat="server"
                    ErrorMessage="Required Field" Text="*" />
                <asp:CompareValidator ID="cvPassword2" runat="server" Display="Dynamic" ErrorMessage="Repeat Password"
                    ControlToCompare="txtPassword1" ControlToValidate="txtPassword2"></asp:CompareValidator>
            </div>
            <div id="email" runat="server">
                <span class="rowBoxLabel">Email:</span>
                <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvEmail" ControlToValidate="txtEmail" runat="server"
                    ErrorMessage="Required Field" Text="*" />
            </div>
            <div id="firstname" runat="server">
                <span class="rowBoxLabel">First Name:</span>
                <asp:TextBox ID="txtFirstName" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvFirstName" ControlToValidate="txtFirstName" runat="server"
                    ErrorMessage="Required Field" Text="*" />
            </div>
            <div id="lastname" runat="server">
                <span class="rowBoxLabel">Last Name:</span>
                <asp:TextBox ID="txtLastName" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvLastName" ControlToValidate="txtLastName" runat="server"
                    ErrorMessage="Required Field" Text="*" />
            </div>
            <div id="phone1" runat="server">
                <span class="rowBoxLabel">Phone:</span>
                <asp:TextBox ID="txtPhone1" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvPhone1" ControlToValidate="txtPhone1" runat="server"
                    ErrorMessage="Required Field" Text="*" />
            </div>
            <div id="phone2" runat="server">
                <span class="rowBoxLabel">Mobile:</span>
                <asp:TextBox ID="txtPhone2" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvPhone2" ControlToValidate="txtPhone2" runat="server"
                    ErrorMessage="Required Field" Text="*" />
            </div>
            <div id="postcity" runat="server">
                <span class="rowBoxLabel">City:</span>
                <asp:TextBox ID="txtPostCity" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvPostCity" ControlToValidate="txtPostCity" runat="server"
                    ErrorMessage="Required Field" Text="*" />
            </div>
            <div id="postaddress" runat="server">
                <span class="rowBoxLabel">Address:</span>
                <asp:TextBox ID="txtPostAddress" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvPostAddress" ControlToValidate="txtPostAddress"
                    runat="server" ErrorMessage="Required Field" Text="*" />
            </div>
            <div id="postcode" runat="server">
                <span class="rowBoxLabel">Post code:</span>
                <asp:TextBox ID="txtPostCode" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvPostCode" ControlToValidate="txtPostCode" runat="server"
                    ErrorMessage="Required Field" Text="*" />
            </div>
            <div id="coordinates" runat="server">
                <span class="rowBoxLabel">Center of municipality (coordinates):</span>
                <asp:TextBox ID="txtCoordinates" runat="server"></asp:TextBox>
                <span>optional</span>
            </div>            
        </div>
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
        <asp:Button ID="Button1" runat="server" Text="Create" OnClick="Button1_Click" />
    </div>
    <div id="message" runat="server" visible="false">
        <span class="rowBoxLabel">Municipality has been created.</span> <span class="rowBoxLabel">
            Try to login with your credentials!</span>
    </div>
    </form>
</body>
</html>
